package writtenexamination.weimeng;

/**
 * @author cyt
 * @create 2020-10-11 下午 4:48
 */
public class Tb {
    public static void main(String[] args) {
        Tb tb = new Tb();
        System.out.println(tb.getPayCount(3));
    }

    public int getPayCount(int n) {
        // write code here
        int count = 0;
        for (int i = 0; i <= 10 / 1; i++) {
            for (int j = 0; j <= 10 / 2; j++) {
                for (int k = 0; k <= 10 / 5; k++) {
                    for (int l = 0; l <= 10 / 10; l++) {
                        if ((i * 1 + j * 2 + k * 5 + l * 10) == n) {
                            count++;
                        }
                    }
                }
            }
        }
        return count;
    }
}
